package hu.elte.tudaskezelo.dbpedialike.views.overlay;

import org.osmdroid.views.overlay.ItemizedIconOverlay;
import org.osmdroid.views.overlay.OverlayItem;

import android.content.Context;
import android.widget.Toast;

public class ItemGesture implements ItemizedIconOverlay.OnItemGestureListener<OverlayItem> {
	final Context context;
	public ItemGesture(Context context) {
			this.context=context;
	}
	@Override
	public boolean onItemSingleTapUp(final int index, final OverlayItem item) {
		Toast.makeText(context, item.getTitle(),Toast.LENGTH_LONG ).show();
		return true; 
	}

	@Override
	public boolean onItemLongPress(final int index, final OverlayItem item) {
		
		return false;
	}

}